import request from '@/utils/request'

export function addPost(data){
    return request({
      url:'/ChsDangerNotPorduce/AddPost',
      method:'post',
      data
    })
  }

  export function editPost(data){
    return request({
      url:'/ChsDangerNotPorduce/EditPost',
      method:'post',
      data
    })
  }

  export function initNewEntity(parameter) {
    return request({
      url: '/ChsDangerNotPorduce/InitNewEntity',
      method: 'get',
      params: parameter
    })
  }

  // GET /api/ChsDangerNotPorduce/Edit/{id}
  export function getDangerDetail(parameter) {
    return request({
      url: '/ChsDangerNotPorduce/Edit/{id}',
      method: 'get',
      params: parameter
    })
  }
  
  // 提交到指派页面
  export function DealDetailPost(data){
    return request({
      url:'/ChsDangerNotPorduce/DealDetailPost',
      method:'post',
      data
    })
  }